home *** CD-ROM | disk | FTP | other *** search
/ BBS Toolkit / BBS Toolkit.iso / wildcat / mnode14.zip / ALT-WAY1.ZIP / NODEX.ALT < prev    next >
Text File  |  1992-11-24  |  3KB  |  97 lines

  1. @echo off
  2. rem C:\WC30\WCWORK\NODEx\NODEx.BAT
  3. rem Generic BBS NODE startup template .BAT
  4. ren Be sure to RENAME this .BAT file to the proper node number
  5. rem IE: NODE1.BAT, NODE2.BAT etc...
  6. rem -----
  7.  
  8. rem Set This node's specific configuration by
  9. rem editing the next 3 SET commands:
  10. rem ---------------------------------------
  11. set WCNODEID=x
  12. set WCPORTID=x
  13. set WCMDM=HSTx
  14. rem No other node information is required to be entered
  15. rem by the Sysop other than the 3 lines above!
  16. rem -----
  17.  
  18. rem Begin Generic .BAT file routines:
  19.  
  20. Echo Executing NODE%WCNODEID%.BAT
  21. Echo ====
  22.  
  23. Echo Testing for C:\WC30\NODE%WCNODEID%.UP
  24. if exist C:\WC30\NODE%WCNODEID%.UP goto NODE_CONFLICT
  25. Echo ====
  26.  
  27. Echo NODE%WCNODEID% is not running, bringing up NODE%WCNODEID% normally.
  28. echo ====
  29.  
  30. Echo Locking out NODE %WCNODEID% via NODE%WCNODEID%.UP tag file.
  31. copy c:\wc30\node.up c:\wc30\NODE%WCNODEID%.UP>NUL:
  32. echo ====
  33.  
  34. Echo Installing NODE%WCNODEID% TSR's and environment variables.
  35. doskey /insert                               <-----------------why run twice?
  36. rem AL Woolley:  Because DOSKEY does NOT work in a DV Window unless it is 
  37. rem              Loaded in each window... Sigh.
  38. prompt NODE %WCNODEID% $p$g
  39. dvansi
  40. cls
  41. Echo ====
  42.  
  43. Echo NODE%WCNODEID%.BAT complete.  Starting up the BBS via C:\WC30\CAT.BAT.
  44. cd c:\wc30
  45. cat.bat    <---------------------silly to do... just type 'WILDCAT' and do it!
  46.  
  47. rem AL Woolley: No Way!  There is no other way to delete the tag file 
  48. rem properly, let WC! execute ERROR level exits etc... without calling
  49. rem CAT.BAT so error level tests can be used and so on...
  50.  
  51. goto EXIT
  52.  
  53. REM ----------------------------
  54.  
  55. :NODE_CONFLICT
  56. CLS
  57. Echo Node %WCNODEID% Conflict detected!
  58. Echo -----
  59. Echo
  60.  
  61. Echo NODE%WCNODEID%.UP tag file found in C:\WC30.  One of two things
  62. Echo has occured:
  63. Echo
  64.  
  65.  
  66. Echo 1) You are attempting to start up a 2nd copy of NODE %WCNODEID%
  67. Echo    under Desqview.
  68. Echo
  69.  
  70.  
  71. Echo 2) The BBS did not terminate normally (there was a crash or reboot)
  72. Echo    via CAT.BAT.
  73. Echo
  74.  
  75.  
  76. Echo Please verify that you are not attempting to start up a 2nd copy of
  77. Echo NODE %WCNODEID%.  If there was a crash, please run CLEANUP.BAT from
  78. Echo the C:\WC30\WCWORK\NODE%WCNODEID% directory.
  79. cd c:\wc30\wcwork\node%WCNODEID%
  80.  
  81. :EXIT
  82. Echo
  83.  
  84.  
  85. Echo NODE%WCNODEID%.BAT Done!     <--------------why? this file, once executing
  86. Echo                                             the cat.bat wouldn't return to
  87.                                                  itself.
  88.  
  89. rem Al Woolley: Because the screen has been cleared.  The idea is to provide a
  90. rem             an "idiot" proof setup.  The novice sysop needs a lot of 
  91. rem             hand-holding.  This will only be ECHO'd on an node conflict
  92. rem             error.  The sysop needs to know WHAT called out the error.
  93. rem             to avoid confusing a CAT.BAT or WILDCAT error callout.
  94. rem             This kind of documenting is manditory in the computing
  95. rem             world I work in (commercial $$$$ programming).  It certainly
  96. rem             doesn't seem to hurt anything???
  97.